package com.sakura.statistics.client;

import com.sakura.commonutils.R;
import com.sakura.statistics.client.fallback.UcenterDegradeFeginClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter",fallback = UcenterDegradeFeginClient.class)
public interface UcenterClient {

    /**
     * 调用service-ucenter接口中统计数量的方法
     * @param day
     * @return
     */
    @GetMapping("/educenter/member/countRegister/{day}")
    R registerCount(@PathVariable("day") String day);
}
